﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Pro_MainList.aspx.cs" Inherits="ArtLand.OA.Project.Project.Pro_MainList" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link href="../css/admin.css" rel="stylesheet" />
    <script src="../js/WebCommon.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="pan1" />
        <ext:Panel ShowBorder="false" ShowHeader="false" runat="server" ID="pan1" Layout="Fit">
            <Toolbars>
                <ext:Toolbar ID="Toolbar2" runat="server">
                    <Items>
                        <ext:TwinTriggerBox ID="ttbxMyBox2" ShowLabel="false" OnTrigger1Click="ttbxMyBox2_Trigger1Click"
                            OnTrigger2Click="ttbxMyBox2_Trigger2Click" Trigger1Icon="Clear" ShowTrigger1="False"
                            EmptyText="请输入项目编号、项目描述或客户方" Trigger2Icon="Search" runat="server" Width="250px">
                        </ext:TwinTriggerBox>
                        <ext:ToolbarSeparator>
                        </ext:ToolbarSeparator>
                        <ext:DatePicker runat="server" Label="日期" ShowLabel="false" EmptyText="请选择开始日期" ID="txt_StartTime"
                            Width="130px" EnableDateSelect="true" OnDateSelect="Search_Change">
                        </ext:DatePicker>
                        <ext:ToolbarText Text="至">
                        </ext:ToolbarText>
                        <ext:DatePicker ID="txt_EndTime" DateFormatString="yyyy-MM-dd" ShowLabel="false"
                            runat="server" Width="130px" EnableDateSelect="true" OnDateSelect="Search_Change"
                            EmptyText="请选择结束日期">
                        </ext:DatePicker>
                        <ext:ToolbarSeparator>
                        </ext:ToolbarSeparator>
                        <ext:DropDownList runat="server" ID="drp_Status" Width="130px" AutoPostBack="true" OnSelectedIndexChanged="Search_Change">
                            <ext:ListItem Text="--请选择项目状态--" Value="-1" Selected="true" />
                            <ext:ListItem Text="项目建立" Value="0" />
                            <ext:ListItem Text="合同建立" Value="1" />
                            <ext:ListItem Text="项目完成" Value="2" />
                            <ext:ListItem Text="已作废" Value="10" />
                        </ext:DropDownList>
                        <ext:Button ID="btnCustomIcon" Text="刷新" Icon="Reload" OnClick="Search_Change" runat="server" />
                    </Items>
                </ext:Toolbar>
            </Toolbars>
            <Items>
                <ext:Grid ID="Grid1" Title="主项目管理" ShowHeader="false" ShowBorder="false" runat="server" EnableCheckBoxSelect="false" DataKeyNames="ID,PRJNUB"
                    OnRowDataBound="Grid1_RowDataBound" OnRowSelect="Grid1_RowSelect" EnableRowSelect="true" EnableTextSelection="true" AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange" EnableRowDoubleClick="true" OnRowDoubleClick="Grid1_RowDoubleClick" OnRowCommand="Grid1_RowCommand" EnableColumnLines="true">
                    <Toolbars>
                        <ext:Toolbar ID="Toolbar1" runat="server">
                            <Items>
                                <ext:Button ID="btnNew" Text="添加" Icon="Add" EnablePostBack="false" runat="server">
                                </ext:Button>
                                <ext:ToolbarSeparator></ext:ToolbarSeparator>
                                <ext:Button ID="Button1" Text="修改" OnClick="Button1_Click" Icon="ApplicationEdit" runat="server">
                                </ext:Button>
                                <ext:ToolbarSeparator></ext:ToolbarSeparator>
                                <ext:Button ID="Button2" Text="作废" OnClick="Button2_Click" Icon="Bin" runat="server" ConfirmText="您确定要这么做吗？">
                                </ext:Button>
                                <ext:ToolbarSeparator></ext:ToolbarSeparator>

                                <ext:Button runat="server" ID="btnContat" EnablePostBack="false" Text="项目合同" Icon="PageWhiteText">
                                    <Menu>
                                        <ext:MenuButton IconUrl="~/icon/page_addedit.png" OnClick="btnContatAdd_Click" Text="添加合同" runat="server" ID="btnContatAdd"></ext:MenuButton>
                                        <ext:MenuButton Icon="PageKey" IconUrl="~/icon/icon-form-search.gif" Text="查看相关合同" ID="btnView" OnClick="btnView_Click"></ext:MenuButton>
                                    </Menu>
                                </ext:Button>
                                <ext:ToolbarSeparator></ext:ToolbarSeparator>
                                <ext:Button runat="server" ID="btnSample" EnablePostBack="false" Text="项目出样费用" Icon="PackageGo">
                                    <Menu>
                                        <ext:MenuButton Icon="PageEdit" OnClick="btnSampleAdd_Click" Text="申请费用" runat="server" ID="btnSampleAdd"></ext:MenuButton>
                                        <ext:MenuButton Icon="PageKey" IconUrl="~/icon/icon-form-search.gif" Text="查看相关费用" ID="btnSampleView" OnClick="btnSampleView_Click"></ext:MenuButton>
                                    </Menu>
                                </ext:Button>
                                <ext:ToolbarSeparator></ext:ToolbarSeparator>
                                <ext:Button runat="server" ID="Button3" EnablePostBack="false" Text="项目跟单" Icon="ApplicationGo">
                                    <Menu>
                                        <ext:MenuButton Icon="PageAdd" OnClick="btn_TaskAdd_Click" Text="添加项目跟单" runat="server" ID="btn_TaskAdd"></ext:MenuButton>
                                        <ext:MenuButton IconUrl="~/icon/page_list.png" Text="查看项目跟单" ID="btn_TaskView" OnClick="btn_TaskView_Click"></ext:MenuButton>
                                    </Menu>
                                </ext:Button>

                                <ext:ToolbarSeparator></ext:ToolbarSeparator>
                                <ext:Button runat="server" ID="Button4" EnablePostBack="false" Text="项目完工档案" IconUrl="/icon/application-task.png">
                                    <Menu>
                                        <ext:MenuButton Icon="ReportAdd" OnClick="MenuButton1_Click" Text="添加项目完工档案" runat="server" ID="MenuButton1"></ext:MenuButton>
                                        <ext:MenuButton IconUrl="/icon/application-list.png" Text="查看项目完工档案" ID="MenuButton2" OnClick="MenuButton2_Click"></ext:MenuButton>
                                    </Menu>
                                </ext:Button>

                                <ext:ToolbarText ID="ToolbarText1" runat="server" Enabled="false" Text="<span style='color:#999'>双击可编辑数据</span>"></ext:ToolbarText>

                            </Items>
                        </ext:Toolbar>
                    </Toolbars>
                    <Columns>
                        <ext:BoundField Width="120px" DataField="PRJNUB" DataFormatString="{0}" HeaderText="项目编号" />
                        <ext:BoundField Width="150px" DataField="CUTNAM" DataFormatString="{0}" HeaderText="项目客户方" />
                        <ext:BoundField Width="140px" DataField="DESTON" DataFormatString="{0}" HeaderText="项目描述" TextAlign="Center" />
                        <ext:BoundField Width="120px" DataField="CONTAT" DataFormatString="{0}" HeaderText="项目联系人" TextAlign="Center" />
                        <ext:BoundField Width="100px" DataField="COTYPE" DataFormatString="{0}" HeaderText="联系方式" TextAlign="Center" />
                        <ext:BoundField Width="200px" DataField="ADDRES" DataFormatString="{0}" HeaderText="项目地址" TextAlign="Center" />
                        <ext:BoundField Width="120px" DataField="AddTime" DataFormatString="{0:yyyy-MM-dd hh:mm}" HeaderText="项目创建时间" />
                        <ext:BoundField Width="120px" DataField="FinshTime" DataFormatString="{0:yyyy-MM-dd hh:mm}" HeaderText="项目完工时间" />
                        <ext:BoundField Width="80px" DataField="STATUS" DataFormatString="{0}" HeaderText="状态" TextAlign="Center" />
                    </Columns>
                </ext:Grid>
            </Items>
        </ext:Panel>

        <ext:Window ID="Window1" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
            CloseAction="HidePostBack" EnableConfirmOnClose="true" EnableClose="false" IFrameUrl="about:blank" Target="Top" IsModal="True" Width="550px" Height="400px">
        </ext:Window>
        <ext:Window ID="Window2" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
            CloseAction="HidePostBack" EnableConfirmOnClose="true" EnableClose="false" IFrameUrl="about:blank" Target="Top" IsModal="True" Width="520px" Height="490px">
        </ext:Window>
        <ext:Window ID="Window3" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
            CloseAction="HidePostBack" EnableConfirmOnClose="true" EnableClose="false" IFrameUrl="about:blank" Target="Top" IsModal="True" Width="500px" Height="250px">
        </ext:Window>
    </form>
    <script src="../js/extgridbug.js"></script>

</body>
</html>
